@extends('layout.admin.index')
@section('content')
<body>
<div class="panel admin-panel">
  <!-- 子菜单显示-添加角色修改 -->
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>{{ $title }}</strong></div>
  <div class="body-content">

    <!-- 角色管理员修改开始-跳转执行修改路由 -->
    <form method="post" class="form-x" action="/admin/roles/doedit" enctype="multipart/form-data">  
    {{ csrf_field() }}
      <div class="form-group">
      </div>
      <!-- 添加标题 -->
      <div class="form-group">
        <div class="label">
          <label>角色名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{{ $data['role_name'] }}" name="role_name"/><font style="font-size:20px;color:red">*</font>
          <div class="tips"></div>
        </div>
      </div>

      <!-- 角色描述 -->
      <div class="form-group">
        <div class="label">
          <label>角色描述：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <textarea name="role_descript" id="" cols="60" rows="4" style="resize:none;float:left" class="input w50">{{ $data['role_descript'] }}</textarea><font style="font-size:20px;color:red">*</font>
          <!-- <div class="tips"></div> -->
          <div style="Clear:both;margin:8px 0 -10px 0;color:#aac">(网站的重点描述信息，让访客清除了解网站概要。)</div>
        </div>
      </div>

      <br>
      <!-- 角色开关 -->
      <div class="form-group">
        <div class="label">
          <label>角色状态：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <ul>
            <li style="margin-top:10px">
                开：<input type="radio" value="1" name="role_open" @if($data['role_open'] == '1') checked @endif/>
                关：<input type="radio" value="2" name="role_open" @if($data['role_open'] == '2') checked @endif/>
            </li>
          </ul>
          <div class="tips"></div>
        </div>
        <div style="float:left;margin:8px 0 -10px 0;color:#aac">(注意：角色权限,关闭则该功能将问,请谨慎操作.默认：开启)</div>
      </div>

      <input type="hidden" name="id" value="{{ $data['id'] }}">  

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
          <a href="/admin/roles/index"  class="button bg-main icon-mail-reply">&nbsp返回</a>
        </div>
      </div>
    </form>
    <!-- 角色管理员添加结束 -->
  </div>
</div>
</body>
@endsection